﻿using System;

class FirTree
{
    static void Main()
    {
        string input = Console.ReadLine();
        int height = int.Parse(input);
        string lastLine = "";

        for (int row = 0; row < height-1; row++)
        {
            string line = "";
            for (int col = 0; col < ((height-1) * 2 -1); col++)
            {
                if (col < height - row -2|| height + row -2< col)
                {
                    line += '.';
                }
                else
                {
                    line += '*';
                }
            }
            if (row == 0)
            {
                lastLine = line;
            }
            Console.WriteLine(line);
        }
        Console.WriteLine(lastLine);
    }
}